//
//  GuessYouLikeCell.m
//  LoveTrail
//
//  Created by giantumbrella on 15/6/27.
//  Copyright (c) 2015年 赵娟. All rights reserved.
//

#import "GuessYouLikeCell.h"
#import "CommonMacro.h"

@interface GuessYouLikeCell ()
@property (nonatomic,strong) UIImageView *productImageView;
@property (nonatomic,strong) UILabel *titleLabel;
@property (nonatomic,strong) UILabel *priceLabel;

@end
@implementation GuessYouLikeCell

- (id)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self createSubview];
    }
    return self;
}

- (void)createSubview
{
    self.productImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 0, self.frame.size.width-20, self.frame.size.height*0.7)];
    [self addSubview:self.productImageView];
    self.productImageView.image = [UIImage imageNamed:@"大牌专区"];
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, self.productImageView.frame.size.height+5, self.frame.size.width-10, self.frame.size.height*0.2)];
    [self addSubview:self.titleLabel];
    self.titleLabel.text = @"美国雅培similar金盾1段奶粉658*4罐原装进口婴儿奶粉";
    self.titleLabel.textColor = UIColorWithRGBA(121, 121, 121, 1);
    self.titleLabel.font = [UIFont systemFontOfSize:11];
    self.titleLabel.numberOfLines = 2;
    [self.titleLabel sizeToFit];
    
    self.priceLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.titleLabel.frame.origin.x, self.titleLabel.frame.size.height+self.titleLabel.frame.origin.y, self.titleLabel.frame.size.width, self.frame.size.height*0.1)];
    [self addSubview:self.priceLabel];
    
    self.priceLabel.textColor = UIColorWithRGBA(233, 68, 111, 1);
//    self.priceLabel.backgroundColor = [UIColor blueColor];
    self.priceLabel.text = @"￥796";
}


@end
